<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@page import="java.util.List"%>
<%@page import="java.util.ArrayList"%>
<%@page import="Entity.*"%>
<%@page import="Dao.*"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>我的任务</h1>

<link href="<%=request.getContextPath()%>/css/backstage.css"
		rel="stylesheet" type="text/css" />
		
		<%
		List<Task> studentTask_list=new ArrayList<Task>();
		if(session.getAttribute("studentTask_session")!=null){
			studentTask_list=(List)session.getAttribute("studentTask_session");
			session.removeAttribute("studentTask_session");
		}
		%>
		
		<div class="header">
		<font size="6" color="#62A8EA"><br />&emsp;&emsp;&emsp;我的任务</font>
	</div>
	
	
	<div class="body">	
			<table class="dataintable">
			<tr>
			<td>任务名称</td>
			<td>任务内容</td>
			<td>开始时间</td>
			<td>结束时间</td>
			<td>发布人ID</td>
			<td>发布人</td>
			<td>发布范围</td>
			<td>操作</td>
			</tr>
			<%
			for(Task tk : studentTask_list){
			%>
			<tr>
			<td><input type="text" name="taskname" value=<%=tk.getTask_name() %> readonly></td>
			<td><textarea name="taskContent" rows="6" cols="50"
					readonly><%=tk.getTask_content()%></textarea></td>
			<td><input type="text" name="startTime" value=<%=tk.getStartTime() %> readonly></td>
			<td><input type="text" name="endTime" value=<%=tk.getEndTime() %> readonly></td>
			<td><input type="text" name="launcher_id" value=<%=tk.getLauncher_id() %> readonly></td>
			<td><input type="text" name="launcher_name" value=<%=tk.getLauncher_name() %> readonly></td>
			<td><input type="text" name="launch_scope" value=<%=tk.getLaunch_scope() %> readonly></td>
			<td>
			<form action="../../jsp/upload_homework.jsp" method="post">
			<input type="hidden" name="launcher_id" value=<%=tk.getLauncher_id() %>>
			<input type="hidden" name="task_id" value=<%=tk.getTask_id() %>>
			<input type="submit" value="提交作业" colpsan="7">
			</form>
			</td>
			</tr>
			<%
			}
			%>
			
			</table></div>

</body>
</html>